package de.cau.apo.problems.identicalscheduling;

/**
 * This class represents a job for the identical scheduling problem.
 * It just consists of a fixed index and of a fixed size.
 * 
 * @author Marius Richter
 *
 */
public class Job {

	// ########### properties ###########
	
	/** the index of this job */
	public final int index;
	/** the size of this job */
	public final int size;
	
	
	// ########### instantiation ###########
	
	/**
	 * Creates a new job object.
	 * @param index the index for this job
	 * @param size the size for this job
	 */
	public Job(int index, int size) {
		this.index = index;
		this.size = size;
	}
	
	// ########### getter/setter ###########
	
	/**
	 * @return the index of this job
	 */
	public int getIndex() {
		return index;
	}
	
	/**
	 * @return the size of this job
	 */
	public int getSize() {
		return size;
	}

	// ########### overriding toString() ###########

	@Override
	public String toString() {
		return "Job [index=" + index + ", size=" + size + "]";
	}
	
}
